package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.TableResultConverter;
import com.leadingsoft.pwxk.dto.AuditPerformReportDto;
import com.leadingsoft.pwxk.model.AuditPerformReport;
/**
 * 
 * @author ysh
 *
 */
@Component
public class AuditPerformReportTableConverter implements TableResultConverter<AuditPerformReport,AuditPerformReportDto>{

	@Override
	public AuditPerformReportDto toTableResultDto(AuditPerformReport model) {
		AuditPerformReportDto auditPerformReportDto = new AuditPerformReportDto();
		auditPerformReportDto.setDataid(model.getDataid());
		auditPerformReportDto.setId(model.getId());
		auditPerformReportDto.setOtherContent(model.getOtherContent());
		auditPerformReportDto.setReportFreq(model.getReportFreq());
		auditPerformReportDto.setReportContent(model.getReportContent());
		return auditPerformReportDto;
	}

}
